<?php

class Rule_Exp extends Rule_Abstract
{
	public $_config = array('msg' => 'not match expression');

    public function isValid($value, $params = null)
    {
        return filter_var($value, FILTER_VALIDATE_REGEXP);
    }
}